﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HotelManagement.Class;

namespace HotelManagement.UserManagementModule
{
    public partial class AboutMe : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            UserAccount us=(UserAccount)Session["object"];
            Label5.Text = us.UserID; //username
            Label6.Text = us.Role; //role
            Staff s=HotelDBManager.getStaffInfoByStaffID(us.StaffID); //info details of Admin
            
            Session["detail"] = s;
            Label3.Text = s.FirstName+" "+s.LastName; //heading
            Label4.Text = s.StaffID; //staffID
            Label7.Text = s.FirstName; //firstname
            Label8.Text = s.LastName; //lastname
            Label9.Text = s.Gender;//gender
            Label10.Text=s.DateOfBirth; //DOB
            Label11.Text = Convert.ToString(s.MobileNum); //mobile num
            Label12.Text = Convert.ToString(s.HomeNum); //homenum
            Label13.Text = s.EmailAddress;
            Label14.Text = s.BlockNum;
            Label15.Text = s.UnitNum;
            Label16.Text = s.StreetName;
            Label17.Text = s.Country;
            Label18.Text = s.PostalCode;

        }

        protected void Button1_Click(object sender, EventArgs e) //Update button
        {
            Response.Redirect("~/UserManagementModule/UpdateMe.aspx");
        }
    }
}